execute as @s[team=] run return run function vs:item/use/use_fail
execute if function vs:chain/next_is_frequency_modulator run return run function vs:item/use/use_fail
execute if function vs:item/frequency_band_tamperer/next_is_frequency_modulator run return run function vs:item/use/use_fail
execute unless data storage vs:system chain.list[0] run return run function vs:item/use/use_fail
execute as @s[team=red] unless entity @a[team=blue] run return run function vs:item/use/use_fail
execute as @s[team=blue] unless entity @a[team=red] run return run function vs:item/use/use_fail

data modify storage vs:system chain.subtitle[-1].color set value "dark_red"
execute as @s[team=red] run function vs:chain/add {command:"function vs:item/frequency_band_tamperer/reaction {team:blue}",id:"frequency_band_tamperer"}
execute as @s[team=blue] run function vs:chain/add {command:"function vs:item/frequency_band_tamperer/reaction {team:red}",id:"frequency_band_tamperer"}